feat(themes): remove deprecated color steps and update bg and text steps#31035
feat(themes): remove deprecated color steps and update bg and text steps#31035thetaPC wants to merge 5 commits intoionic-modularfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| --ion-color-step-50, | ||
| var(--ion-text-color-step-950, mix($background-color-value, $text-color-value, 95%)) | ||
| ); | ||
| $background-color-step-50: var(--ion-background-color-step-50, mix($text-color-value, $background-color-value, 5%)); |
There was a problem hiding this comment.
We should consider moving these to the default tokens file instead and just having the Sass files use the tokens directly instead of Sass variables. Doesn't have to be done on this PR though.
There was a problem hiding this comment.
Created the ticket so we can do it at a later time
| backgroundColorStep: generateColorSteps('#ffffff', '#121212'), | ||
| textColorStep: generateColorSteps('#888888', '#ffffff'), |
There was a problem hiding this comment.
These values are not right. The values are flipped for the dark palette.
There was a problem hiding this comment.
Good example of why we need screenshots: 6e311ad
| export const highContrastTheme: HighContrastTheme = { | ||
| ...baseHighContrastTheme, | ||
|
|
||
| backgroundColor: '#ffffff', |
There was a problem hiding this comment.
Why was this removed entirely?
There was a problem hiding this comment.
The high-contrast.tokens under the base folder is already generating this value. We shouldn't be adding duplicates under the the themes when we are already appending the base.
There was a problem hiding this comment.
Like my earlier comment - we should consider making these always available for every theme and palette.
Issue number: internal
What is the current behavior?
Code still references the deprecated color steps.
What is the new behavior?
Does this introduce a breaking change?
--ion-color-step-[number], have been removed and should be replaced with either--ion-background-color-step-[number]or--ion-text-color-step-[number]depending on the specific use case, as outlined in the migration guide.Other information
Preview